package com.sheyu.mall.product.service.category;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sheyu.common.utils.PageUtils;
import com.sheyu.mall.product.entity.category.CategoryEntity;
import com.sheyu.mall.product.service.category.vo.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author sheyu
 * @email sheyu@XXX.com
 * @date 2020-07-27 12:44:31
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> getAllCategories();

    Long[] categoryPath(Long catelogId);

    void updateCascade(CategoryEntity category);

    List<CategoryEntity> getLevel1Categorys();

    Map<String, List<Catelog2Vo>> getCatalogJson();

    void removeCategoryByIds(List<Long> catIds);

}

